package cn.bonoon.kernel.config;

import org.springframework.beans.factory.xml.NamespaceHandlerSupport;
import org.springframework.context.annotation.ServiceConfigDefinitionParser;

import cn.bonoon.kernel.io.FileManagerDefinitionParser;
import cn.bonoon.kernel.menus.ModulesDefinitionParser;

public class KernelNameSpaceHandler extends NamespaceHandlerSupport{

	@Override
	public void init() {
		registerBeanDefinitionParser("kernel-auto", new KernelAutoDefinitionParser());
		registerBeanDefinitionParser("file-manager", new FileManagerDefinitionParser());
		registerBeanDefinitionParser("service-config", new ServiceConfigDefinitionParser());
		registerBeanDefinitionParser("modules", new ModulesDefinitionParser());
	}
}
